//
//  HotelStayOrderEditHeader.m
//  Traveling
//
//  Created by Northwan on 15/6/12.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "HotelStayOrderEditHeader.h"
@interface HotelStayOrderEditHeader()

@end
@implementation HotelStayOrderEditHeader

+(instancetype)initHeaderView{
    return [[[NSBundle mainBundle]loadNibNamed:@"HotelStayOrderEditHeader" owner:nil options:nil]lastObject];
}

-(void)initData:(HomeItemDetailHeaderModel *)result{
    [self.titleLabel setText:result.title];
    [self.bannerView sd_setImageWithURL:[NSURL URLWithString:result.iconUrl]];
    [self.comeinTimeLabel setText:[NSString stringWithFormat:@"入住：%@",result.checkInTime]];
    [self.checkOutTimeLabel setText:[NSString stringWithFormat:@"离店：%@",result.checkOutTime]];
    [self.totalNightLabel setText:[NSString stringWithFormat:@"共%ld晚",result.totalNight]];
    [self.roomTypeLabel setText:[NSString stringWithFormat:@"房型：%@(%@早餐)",result.roomType,result.breakfast]];
    [self.bedTypeLabel setText:[NSString stringWithFormat:@"床型：%@",result.bedType]];
    [self.networkLabel setText:[NSString stringWithFormat:@"宽带：%@",result.network]];
}

@end
